package com.itshidu.jiaowu.dao;

import com.itshidu.jiaowu.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XiaZengming123
 * @since 2019-07-08
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("Select * from user where username=#{username}")
    User SelectByName(String username);

    @Select("select username from user where id=#{id}")
    String SelectNameById(Long id);

}
